package com.wanhe.base.model.holder;

import com.wanhe.base.model.disgn.CatalogViewModel;

import java.util.HashMap;

/**
 * Created by Administrator on 2016/6/28.
 */
public class CatalogViewHolder extends HashMap<String, CatalogViewModel>  {
    private static CatalogViewHolder ourInstance;

    public synchronized static CatalogViewHolder getInstance() {
        if (ourInstance == null) {
            ourInstance = new CatalogViewHolder();
        }
        return ourInstance;
    }

    private CatalogViewHolder() {
    }

    public void release() {
        ourInstance.clear();
        ourInstance = null;
    }
}
